import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex);

export default new Vuex.Store({
	state: {
		movieData: {} // 影视数据
	},
	mutations: {
		INIT_MOVIEDATA(state, payload) {
			// console.log('init_payload', payload);
			state.movieData = payload;
		},
		
	},
	getters: {
		getMovieData: state => state.movieData
	}
});